
#ifndef _TW_HEADFILE_H_
#define _TW_HEADFILE_H_

#include "TwRefRoot.h"
#include <d3d9.h >
#include <d3dx9.h>


#ifndef _BaseClass_
#define _BaseClass_(BClass) :public BClass
#endif

#if !defined(SAFE_RELEASE)
#define SAFE_RELEASE(p)	if(p){p->Release();p=NULL;}
#endif//#if !defined(SAFE_RELEASE)

#if !defined(SAFE_DELETE)
#define SAFE_DELETE(p)	if(p){delete p;p=NULL;}
#endif//#if !defined(SAFE_DELETE)

#if !defined(SAFE_DELETE_ARRAY)
#define SAFE_DELETE_ARRAY(p)	if(p){delete [] p;p=NULL;}
#endif//#if !defined(SAFE_DELETE_ARRAY)


#endif